
import {GroupDB} from "@/entity/GroupDB.js"
import {UserDB} from "@/entity/UserDB.js"

const DC = {
	
	userDB:new UserDB(),
	
	groupDB:new GroupDB()
}

export const initDC = (userId) =>{
	DC.groupDB.setMaster(userId)
	DC.userDB.setMaster(userId)
	return DC
}
export default DC
// #ifdef H5
window.DC = DC
// #endif